package extrace.misc.model;

import com.google.gson.annotations.Expose;

import java.io.Serializable;

public class Region implements Serializable {

	public Region() {
	}
	
	@Expose private String regionCode;

	@Expose private String prv;

	@Expose private String cty;

	@Expose private String twn;

	@Expose private Integer type;

	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}

	public String getPrv() {
		return prv;
	}

	public void setPrv(String prv) {
		this.prv = prv;
	}

	public String getCty() {
		return cty;
	}

	public void setCty(String cty) {
		this.cty = cty;
	}

	public String getTwn() {
		return twn;
	}

	public void setTwn(String twn) {
		this.twn = twn;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		String s = "";
		if (getPrv() != null) {
			s += getPrv();
		}
		if (getCty() != null) {
			s += getCty();
		}
		if (getTwn() != null) {
			s += getTwn();
		}
		return s;
	}
	
}
